package com.lzp.appexp

import android.net.Uri


/**
 * @describe:
 * @Author: lixiaopeng
 * @Date: 4/16/21
 */


/*
fun main() {

    val bList = mutableListOf<BBB>()
    val proThread = ProThread(bList)
    proThread.start()

    val saleThread = SaleThread(bList)
    saleThread.start()

    while (true) {
        Thread.sleep(100)
        val list = mutableListOf<BBB>()
        list.addAll(bList)
        println(list.size)

    }
}

class BBB(var name: String)

class SaleThread(private var list: MutableList<BBB>) : Thread() {
    override fun run() {
        super.run()
        while (true) {
            Thread.sleep(150)
            if (list.isNotEmpty()){
                list.removeAt(0)
            }
        }
    }
}
class ProThread(private var list: MutableList<BBB>) : Thread() {

    private var count = 0
    override fun run() {
        super.run()
        while (true) {
            Thread.sleep(100)
            count++
            list.add(BBB(count.toString()))
        }
    }
}
*/

fun main() {


}